package com.easypay.usercenter.service;


import com.easypay.usercenter.api.UserServiceApi;
import com.easypay.usercenter.dao.UserMapper;
import com.easypay.usercenter.pojo.User;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Author:asheng
 * @Date: 2021/7/5 12:40 上午
 */
@DubboService(interfaceClass = UserServiceApi.class)
public class UserServiceImpl implements UserServiceApi {

    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> findAll() {
       List<User> users = userMapper.selectList(null);
       return users;
    }
}
